package com.pure.controller
{
	import com.pure.view.UserFormMediator;
	import com.pure.view.UserListMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class PrepViewCommand extends SimpleCommand
	{
		override public function execute( note:INotification ) : void	
		{
			var app:MyApp = MyApp( note.getBody() );
			facade.registerMediator( new UserFormMediator( app.userForm ) );
			facade.registerMediator( new UserListMediator( app.userList ) );
		}
	}
}